<?php

namespace Database\Seeders;

use App\Models\Category;
use Illuminate\Database\Seeder;

class CategorySeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $categories = [
            '国产',
            '日韩',
            '欧美',
            '动漫',
            '中文',
            '港台',
        ];

        foreach ($categories as $index => $val) {
            Category::query()->create([
                'index' => $index + 1,
                'title' => $val,
                'picture' => DownloadImage::putImage(),
            ]);
        }
    }
}
